#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtGui/QMainWindow>
#include <QMessageBox>
#include <QtAlgorithms>
#include <QMap>
#include <QFile>
#include <QDomDocument>
#include "cpresssheet.h"
#include "cproduct.h"
#include "cformat.h"
#include "dialogformat.h"

namespace Ui
{
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();

    void UpdateGroupList();
    void UpdatePressSheet();
    void LoadFormatsFromXML();

public slots:
    void AddRow();
    void DeleteRow();
    bool FindImpos();
    void OpenFormatDialog();
    bool WritePrepsTemplate();

private:
    Ui::MainWindow *ui;
    CPressSheet press_sheet;
    QMap<CFormat, QString> format_map;
};

#endif // MAINWINDOW_H
